import './assets/reset.css'
import './assets/rem'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import Router from 'vue-router'

// 解决重复点击导航路由报错
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err => err);
}


// import Vant from 'vant';
// Vue.use(Vant);

Vue.config.productionTip = false
import 'vant/lib/index.css';

import { Button, Col, Row, Field, Icon, Tab, Tabs, Swipe, SwipeItem, Grid, GridItem, CountDown, Tabbar, TabbarItem, Notify, Sidebar, SidebarItem, GoodsAction, GoodsActionIcon, GoodsActionButton, NavBar, Sku, Uploader } from 'vant';

Vue.use(Button).use(Col).use(Row)
    .use(Icon).use(Field).use(Tab).use(Tabs)
    .use(Swipe).use(SwipeItem).use(Grid)
    .use(GridItem).use(CountDown)
    .use(Tabbar)
    .use(TabbarItem)
    .use(Notify)
    .use(Sidebar)
    .use(SidebarItem)
    .use(GoodsAction)
    .use(GoodsActionIcon)
    .use(GoodsActionButton)
    .use(NavBar)
    .use(Sku)
    .use(Uploader)

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')